<template>
    <div class="">
      <el-table :data="dataList" style="width: 100%" border>
        <el-table-column prop="checkProfessionName" label="检查专业" width="180"> </el-table-column>
        <el-table-column prop="superviseOrg" label="监督机构" width="180"> </el-table-column>
        <el-table-column prop="implementStatus" label="执行状态"> 
          <template slot-scope="scope">
           <dict-tag  :options="dict.type.implement_status"
           :value="scope.row.implementStatus" ></dict-tag>
           </template>
        </el-table-column>
        <el-table-column prop="endTime" label="报告日期"> </el-table-column>
      </el-table>
      <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getDataList"
      />
    </div>
  </template>
  
  <script>
  import { getInspectTaskListAPI } from "@/api/zhangping/health-care/base-info";
  export default {
    dicts:['implement_status'],
    mixins: [],
    components: {},
    props: {},
    data() {
      return {
        dataList: [],
        total: 0,
        queryParams: {
          creditCode:this.$route.query.creditCode,
          taskType:2,
          pageNum: 1,
          pageSize: 10,
        },
      };
    },
    computed: {},
    watch: {},
    created() {},
    mounted() {
      this.getDataList();
    },
    methods: {
      getDataList() {
        getInspectTaskListAPI(this.queryParams).then((res) => {
          if(res.code === 200){

            this.dataList = res.rows;
            this.total = res.total
          }
        });
      },
    },
  };
  </script>
  
  <style scoped lang="scss"></style>
  